﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F07 RID: 3847
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicAreaInfo : IMessage<RogueMagicAreaInfo>, IMessage, IEquatable<RogueMagicAreaInfo>, IDeepCloneable<RogueMagicAreaInfo>, IBufferMessage
	{
		// Token: 0x170030E0 RID: 12512
		// (get) Token: 0x0600AC91 RID: 44177 RVA: 0x001D2E2F File Offset: 0x001D102F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicAreaInfo> Parser
		{
			get
			{
				return RogueMagicAreaInfo._parser;
			}
		}

		// Token: 0x170030E1 RID: 12513
		// (get) Token: 0x0600AC92 RID: 44178 RVA: 0x001D2E36 File Offset: 0x001D1036
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicAreaInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170030E2 RID: 12514
		// (get) Token: 0x0600AC93 RID: 44179 RVA: 0x001D2E48 File Offset: 0x001D1048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicAreaInfo.Descriptor;
			}
		}

		// Token: 0x0600AC94 RID: 44180 RVA: 0x001D2E4F File Offset: 0x001D104F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicAreaInfo()
		{
		}

		// Token: 0x0600AC95 RID: 44181 RVA: 0x001D2E64 File Offset: 0x001D1064
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicAreaInfo(RogueMagicAreaInfo other) : this()
		{
			this.isUnlocked_ = other.isUnlocked_;
			this.unlockedTournDifficultyList_ = other.unlockedTournDifficultyList_.Clone();
			this.areaId_ = other.areaId_;
			this.oLFJFJOJNAP_ = other.oLFJFJOJNAP_;
			this.completed_ = other.completed_;
			this.isTakenReward_ = other.isTakenReward_;
			this.recordInfo_ = ((other.recordInfo_ != null) ? other.recordInfo_.Clone() : null);
			this.dJEOIECOFJM_ = ((other.dJEOIECOFJM_ != null) ? other.dJEOIECOFJM_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AC96 RID: 44182 RVA: 0x001D2F0D File Offset: 0x001D110D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicAreaInfo Clone()
		{
			return new RogueMagicAreaInfo(this);
		}

		// Token: 0x170030E3 RID: 12515
		// (get) Token: 0x0600AC97 RID: 44183 RVA: 0x001D2F15 File Offset: 0x001D1115
		// (set) Token: 0x0600AC98 RID: 44184 RVA: 0x001D2F1D File Offset: 0x001D111D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsUnlocked
		{
			get
			{
				return this.isUnlocked_;
			}
			set
			{
				this.isUnlocked_ = value;
			}
		}

		// Token: 0x170030E4 RID: 12516
		// (get) Token: 0x0600AC99 RID: 44185 RVA: 0x001D2F26 File Offset: 0x001D1126
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> UnlockedTournDifficultyList
		{
			get
			{
				return this.unlockedTournDifficultyList_;
			}
		}

		// Token: 0x170030E5 RID: 12517
		// (get) Token: 0x0600AC9A RID: 44186 RVA: 0x001D2F2E File Offset: 0x001D112E
		// (set) Token: 0x0600AC9B RID: 44187 RVA: 0x001D2F36 File Offset: 0x001D1136
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x170030E6 RID: 12518
		// (get) Token: 0x0600AC9C RID: 44188 RVA: 0x001D2F3F File Offset: 0x001D113F
		// (set) Token: 0x0600AC9D RID: 44189 RVA: 0x001D2F47 File Offset: 0x001D1147
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OLFJFJOJNAP
		{
			get
			{
				return this.oLFJFJOJNAP_;
			}
			set
			{
				this.oLFJFJOJNAP_ = value;
			}
		}

		// Token: 0x170030E7 RID: 12519
		// (get) Token: 0x0600AC9E RID: 44190 RVA: 0x001D2F50 File Offset: 0x001D1150
		// (set) Token: 0x0600AC9F RID: 44191 RVA: 0x001D2F58 File Offset: 0x001D1158
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Completed
		{
			get
			{
				return this.completed_;
			}
			set
			{
				this.completed_ = value;
			}
		}

		// Token: 0x170030E8 RID: 12520
		// (get) Token: 0x0600ACA0 RID: 44192 RVA: 0x001D2F61 File Offset: 0x001D1161
		// (set) Token: 0x0600ACA1 RID: 44193 RVA: 0x001D2F69 File Offset: 0x001D1169
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsTakenReward
		{
			get
			{
				return this.isTakenReward_;
			}
			set
			{
				this.isTakenReward_ = value;
			}
		}

		// Token: 0x170030E9 RID: 12521
		// (get) Token: 0x0600ACA2 RID: 44194 RVA: 0x001D2F72 File Offset: 0x001D1172
		// (set) Token: 0x0600ACA3 RID: 44195 RVA: 0x001D2F7A File Offset: 0x001D117A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EINJOJNHBDO RecordInfo
		{
			get
			{
				return this.recordInfo_;
			}
			set
			{
				this.recordInfo_ = value;
			}
		}

		// Token: 0x170030EA RID: 12522
		// (get) Token: 0x0600ACA4 RID: 44196 RVA: 0x001D2F83 File Offset: 0x001D1183
		// (set) Token: 0x0600ACA5 RID: 44197 RVA: 0x001D2F8B File Offset: 0x001D118B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public IPKCDKHDIPI DJEOIECOFJM
		{
			get
			{
				return this.dJEOIECOFJM_;
			}
			set
			{
				this.dJEOIECOFJM_ = value;
			}
		}

		// Token: 0x0600ACA6 RID: 44198 RVA: 0x001D2F94 File Offset: 0x001D1194
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicAreaInfo);
		}

		// Token: 0x0600ACA7 RID: 44199 RVA: 0x001D2FA4 File Offset: 0x001D11A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicAreaInfo other)
		{
			return other != null && (other == this || (this.IsUnlocked == other.IsUnlocked && this.unlockedTournDifficultyList_.Equals(other.unlockedTournDifficultyList_) && this.AreaId == other.AreaId && this.OLFJFJOJNAP == other.OLFJFJOJNAP && this.Completed == other.Completed && this.IsTakenReward == other.IsTakenReward && object.Equals(this.RecordInfo, other.RecordInfo) && object.Equals(this.DJEOIECOFJM, other.DJEOIECOFJM) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600ACA8 RID: 44200 RVA: 0x001D305C File Offset: 0x001D125C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsUnlocked)
			{
				num ^= this.IsUnlocked.GetHashCode();
			}
			num ^= this.unlockedTournDifficultyList_.GetHashCode();
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this.OLFJFJOJNAP != 0U)
			{
				num ^= this.OLFJFJOJNAP.GetHashCode();
			}
			if (this.Completed)
			{
				num ^= this.Completed.GetHashCode();
			}
			if (this.IsTakenReward)
			{
				num ^= this.IsTakenReward.GetHashCode();
			}
			if (this.recordInfo_ != null)
			{
				num ^= this.RecordInfo.GetHashCode();
			}
			if (this.dJEOIECOFJM_ != null)
			{
				num ^= this.DJEOIECOFJM.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600ACA9 RID: 44201 RVA: 0x001D3139 File Offset: 0x001D1339
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600ACAA RID: 44202 RVA: 0x001D3141 File Offset: 0x001D1341
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600ACAB RID: 44203 RVA: 0x001D314C File Offset: 0x001D134C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.unlockedTournDifficultyList_.WriteTo(ref output, RogueMagicAreaInfo._repeated_unlockedTournDifficultyList_codec);
			if (this.dJEOIECOFJM_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.DJEOIECOFJM);
			}
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.AreaId);
			}
			if (this.IsUnlocked)
			{
				output.WriteRawTag(72);
				output.WriteBool(this.IsUnlocked);
			}
			if (this.Completed)
			{
				output.WriteRawTag(80);
				output.WriteBool(this.Completed);
			}
			if (this.IsTakenReward)
			{
				output.WriteRawTag(96);
				output.WriteBool(this.IsTakenReward);
			}
			if (this.recordInfo_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.RecordInfo);
			}
			if (this.OLFJFJOJNAP != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.OLFJFJOJNAP);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600ACAC RID: 44204 RVA: 0x001D3244 File Offset: 0x001D1444
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsUnlocked)
			{
				num += 2;
			}
			num += this.unlockedTournDifficultyList_.CalculateSize(RogueMagicAreaInfo._repeated_unlockedTournDifficultyList_codec);
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this.OLFJFJOJNAP != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OLFJFJOJNAP);
			}
			if (this.Completed)
			{
				num += 2;
			}
			if (this.IsTakenReward)
			{
				num += 2;
			}
			if (this.recordInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RecordInfo);
			}
			if (this.dJEOIECOFJM_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.DJEOIECOFJM);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600ACAD RID: 44205 RVA: 0x001D3304 File Offset: 0x001D1504
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicAreaInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsUnlocked)
			{
				this.IsUnlocked = other.IsUnlocked;
			}
			this.unlockedTournDifficultyList_.Add(other.unlockedTournDifficultyList_);
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			if (other.OLFJFJOJNAP != 0U)
			{
				this.OLFJFJOJNAP = other.OLFJFJOJNAP;
			}
			if (other.Completed)
			{
				this.Completed = other.Completed;
			}
			if (other.IsTakenReward)
			{
				this.IsTakenReward = other.IsTakenReward;
			}
			if (other.recordInfo_ != null)
			{
				if (this.recordInfo_ == null)
				{
					this.RecordInfo = new EINJOJNHBDO();
				}
				this.RecordInfo.MergeFrom(other.RecordInfo);
			}
			if (other.dJEOIECOFJM_ != null)
			{
				if (this.dJEOIECOFJM_ == null)
				{
					this.DJEOIECOFJM = new IPKCDKHDIPI();
				}
				this.DJEOIECOFJM.MergeFrom(other.DJEOIECOFJM);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600ACAE RID: 44206 RVA: 0x001D33F9 File Offset: 0x001D15F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600ACAF RID: 44207 RVA: 0x001D3404 File Offset: 0x001D1604
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num <= 42U)
					{
						if (num == 40U || num == 42U)
						{
							this.unlockedTournDifficultyList_.AddEntriesFrom(ref input, RogueMagicAreaInfo._repeated_unlockedTournDifficultyList_codec);
							continue;
						}
					}
					else
					{
						if (num == 58U)
						{
							if (this.dJEOIECOFJM_ == null)
							{
								this.DJEOIECOFJM = new IPKCDKHDIPI();
							}
							input.ReadMessage(this.DJEOIECOFJM);
							continue;
						}
						if (num == 64U)
						{
							this.AreaId = input.ReadUInt32();
							continue;
						}
					}
				}
				else if (num <= 80U)
				{
					if (num == 72U)
					{
						this.IsUnlocked = input.ReadBool();
						continue;
					}
					if (num == 80U)
					{
						this.Completed = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.IsTakenReward = input.ReadBool();
						continue;
					}
					if (num == 114U)
					{
						if (this.recordInfo_ == null)
						{
							this.RecordInfo = new EINJOJNHBDO();
						}
						input.ReadMessage(this.RecordInfo);
						continue;
					}
					if (num == 120U)
					{
						this.OLFJFJOJNAP = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400460D RID: 17933
		private static readonly MessageParser<RogueMagicAreaInfo> _parser = new MessageParser<RogueMagicAreaInfo>(() => new RogueMagicAreaInfo());

		// Token: 0x0400460E RID: 17934
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400460F RID: 17935
		public const int IsUnlockedFieldNumber = 9;

		// Token: 0x04004610 RID: 17936
		private bool isUnlocked_;

		// Token: 0x04004611 RID: 17937
		public const int UnlockedTournDifficultyListFieldNumber = 5;

		// Token: 0x04004612 RID: 17938
		private static readonly FieldCodec<uint> _repeated_unlockedTournDifficultyList_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x04004613 RID: 17939
		private readonly RepeatedField<uint> unlockedTournDifficultyList_ = new RepeatedField<uint>();

		// Token: 0x04004614 RID: 17940
		public const int AreaIdFieldNumber = 8;

		// Token: 0x04004615 RID: 17941
		private uint areaId_;

		// Token: 0x04004616 RID: 17942
		public const int OLFJFJOJNAPFieldNumber = 15;

		// Token: 0x04004617 RID: 17943
		private uint oLFJFJOJNAP_;

		// Token: 0x04004618 RID: 17944
		public const int CompletedFieldNumber = 10;

		// Token: 0x04004619 RID: 17945
		private bool completed_;

		// Token: 0x0400461A RID: 17946
		public const int IsTakenRewardFieldNumber = 12;

		// Token: 0x0400461B RID: 17947
		private bool isTakenReward_;

		// Token: 0x0400461C RID: 17948
		public const int RecordInfoFieldNumber = 14;

		// Token: 0x0400461D RID: 17949
		private EINJOJNHBDO recordInfo_;

		// Token: 0x0400461E RID: 17950
		public const int DJEOIECOFJMFieldNumber = 7;

		// Token: 0x0400461F RID: 17951
		private IPKCDKHDIPI dJEOIECOFJM_;
	}
}
